package com.qxbb.report.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qxbb.report.utils.CustomDoubleSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.NotNull;

/**
 * 类别
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CategoryVO {

    /**
     * 年份id
     */
    @NotNull
    private Integer  yearId;

    /**
     * 季度id
     */
    private Integer  quarterId;


    /**
     * 类别id
     */
    private Integer categoryId;

    /**
     * 类别名称
     */
    private String  categoryName;

    /**
     * 净售量
     */
    private int netSalesVolume;

    /**
     * 赠品量
     */
    private int giftQuantity;

    /**
     * 净售额
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private double netSalesAmount;

    /**
     * 净成本
     */
    private int netCost;

    /**
     * 利润
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private double profit;

}
